﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Gundam_2._0_Alpha.src
{
    public class VectorShoot:IDrawAction
    {
        private Character boss;
        private Player p;
        private Vector v;
        private int multiply = 20;
        private int w = 0, h = 0, x, y;
        private bool expand = false;
        LineSegment[] lineArray = new LineSegment[20];
        

        public VectorShoot(Character boss, Player p)
        {
            this.boss = boss;
            this.p = p;
        }

        public void DoAction(GameController gc)
        {
            if(expand) h ++;
            else h--;
            if (!expand && h < 0) expand = true;
            else if (expand && h > 10) expand = false;
            w += 100;
            if (w > 1000) w = 0;
                
            
        }

        public void Draw()
        {
            Graphics.FillRectangle(Color.Magenta, Geometry.CenterPoint(boss.ObjectSprite).x - boss.ShootOffsetX(), Geometry.CenterPoint(boss.ObjectSprite).y - boss.ShootOffsetY, w, h);

        }
    }
}
